package com.huawei.appmarket.service.store.awk.node;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.RelativeLayout.LayoutParams;
import com.huawei.appmarket.service.store.awk.card.SubstanceAppDlHeadCard;
import o.azb;
import o.cdr;
import o.cih;
import o.epv;
import o.ewm.h;
import o.ewm.j;

public class SubstanceAppDlHeadNode extends cdr {
    public SubstanceAppDlHeadNode(Context context) {
        super(context, 1);
    }

    public boolean ˊ(ViewGroup viewGroup, ViewGroup viewGroup2) {
        View inflate = LayoutInflater.from(this.ॱ).inflate(h.ᐝـ, null);
        azb.ॱ(inflate, j.ʾˈ);
        ImageView imageView = (ImageView) inflate.findViewById(j.ʾʿ).findViewById(j.ꜞ);
        Context context = viewGroup.getContext();
        LayoutParams layoutParams = (LayoutParams) imageView.getLayoutParams();
        layoutParams.height = (int) (((double) epv.ˎ(context)) * 0.5625d);
        layoutParams.width = -1;
        imageView.setLayoutParams(layoutParams);
        cih substanceAppDlHeadCard = new SubstanceAppDlHeadCard(context);
        substanceAppDlHeadCard.ˏ(inflate);
        ˊ(substanceAppDlHeadCard);
        viewGroup.addView(inflate);
        return true;
    }
}
